package kr.totalcall.util
{
	/**
	 * 작업 기록
	 * 2012. 6. 12. / 이규광 / 최초 작성.
	 */
	/**
	 * 내용.
	 * @productversion Flex 4.5
	 * @langversion ActionScript 3.0
	 * @playerversion Flash 10.2
	 * @author 이규광.
	 */
	public class BusinessUtil
	{
		
		
		/**
		 * 야간 할증 요금
		 */
		public static function getNightExtraFare(hour:Number=NaN):String{
			
			if(isNaN(hour))
				hour = (new Date()).hours;
			
			var fare:String = "0";
			
			switch(hour){
				case 19 : fare = "1,000"; break;
				case 20 : fare = "2,000"; break;
				case 21 : fare = "3,000"; break;
				case 22 : fare = "4,000"; break;
				case 23 : fare = "5,000"; break;
				case 0 :  fare = "6,000"; break;
				case 1 :  fare = "7,000"; break;
				case 2 : case 3 : case 4 : case 5 : 
					fare = "8,000"; break;
				case 6 :  fare = "3,000"; break;
				case 7 :  fare = "2,000"; break;
				default : fare = "0"; break;
			}
			
			return fare;
		}
		
		
		
		/**
		 * 생성자
		 */
		public function BusinessUtil() {
		}
		
		
	}
}